package io.knifer.gokexceltask.utils;

import java.io.File;
import java.io.IOException;

@SuppressWarnings("all")
public class FileUtils {
    private FileUtils(){}

    public static File getResourceFile(String relativePath) throws IOException {
        File file = new File(FileUtils.class.getClassLoader().getResource("").getPath() + relativePath);

        if (!file.exists())
            file.createNewFile();

        return file;
    }
}
